
#ifndef _COMMON_H
#define _COMMON_H

#include "xc.h"

#define MAIN_BOOT_VER "b01:" "0.0.1"

#define BOOT_VER_FORMAT "b%02d:" "%d.%d.%d.%d"

uint16_t CRC16_Chk_Rx(uint8_t udata8, uint16_t len);
uint16_t CRC16_Chk_Tx(uint8_t udata8, uint16_t len);

uint16_t CRC16_Chk_Rx_CK(uint8_t udata8, uint16_t len);
uint16_t CRC16_Chk_Tx_CK(uint8_t udata8, uint16_t len);
#endif